package cn.felord.cloud.provider.api;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Dax
 * @since 13:18  2019-08-14
 */
@RestController
@RequestMapping("/foo")
public class FooController {

    @Value("${spring.application.name}")
    private String name;

    @GetMapping("/api")
    public String foo() {
        return name;
    }

}
